package com.hyw.cm.common.protocal.spi;

import java.time.Duration;

public interface IProtocalDriver {
  default String getName() {
    return this.getClass().getSimpleName();
  }

  public IDecoder<?> getDecoder();

  public IEncoder<?> getEncoder();

  default Duration getReadTimeout() {
    return Duration.ofSeconds(0);
  }

  default Duration getWriteTimeout() {
    return Duration.ofSeconds(0);
  }

  default Duration getAllTimeout() {
    return Duration.ofSeconds(0);
  }

}
